Part Number Hot Search : 
PMR280 73001 L201E3 802BE Q100S IL1815N M06AB PC3SF11
Product Description
Full Text Search
 

To Download AN1114 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  january 1999 ? AN1114 application note burst mode triac control by using st52x301 authors: a. cucuccio, m. lo presti 1. introduction the aim of this application note is to provide a complete hardware schematic and the software routines for a system using a triac in burst mode driven by the peripherals included in the st52x301 dualogic microcontroller. this system is suitable for thermal regulation in home appliance (i.e. heating system) or in industrial ther- mal controls. in particular, all the parts useful to develop the above-mentioned application are described hereafter: a) 1 power supply for st52x301, from the mains voltage, in order to drive a triac in quadrant 2 and 3; b) 1 circuit to detect the pre zero-crossing and post zero-crossing of the triac current; c) 1 general purpose st52x301 software to manage the application by using fuzzystudio ? 3.0 software tool. note: the load has been supposed as purely ohmic: in this case it is possible to directly check the main voltage to detect the zero crossing triac current. l n load a2 a1 il g figure 1 . triac pinout notation 1/13
2. symmetrical burst mode control by contrast with phase control, based upon power control on the basis of every half-wave, the periodic pulse-train control system cyclically supplies a certain number of pulses (one period=positive and negati- ve half-wave) to the load (see following figure). -1,5 -1 -0,5 0 0,5 1 1,5 ton to ff tb power line triac pulses -1 -0,5 0 0,5 1 1,5 load power figure 2. periodic pulse train the number of periodic pulse trains can be controlled within a given cycle time, thus determining the sup- plied power. a periodic pulse train control system is used whenever the load specific time constant increases about 300 ms (heating systems with a power delay or inertia). this system is not appropriate for motor control or lighting control systems. this triac control method does not produce interferences. this means that no interference suppression measures is required. in order to implement this working mode, a flexible peripheral has been included in st52x301 (please re- fer to st52x301 data sheet, pages 44/51). when configured for burst mode triac control, a square wave, tb, (fig. 2) is generated with a duty cycle proportional to the power the user intend to transfer on the load. a pulse is generated for each zero crossing of the main voltage included in the ton of the fixed period. AN1114 - application note 2/13
3. power supply this section, although developed as a result of a typical triac application, can be used as general purpo- se ac/dc converter in any application requiring st52x301. to fire the triac in quadr ant 2 and 3, a nega- tive polarity of g with respect to a1 is required, then a possible solution would be to keep a1 terminal to vdd and control the gate pin with negative pulse (vdd to gnd transition). the proposed system allows to obtain two outputs, -1.2v and +5v, by using above all a 6.2v zener dio- de and a darlington transistor. using the negative output, the use of rail to rail operational amplifiers in si- gnal conditioning circuit for the analog inputs of st52x301 will be avoided (working range: 0v to 2.47v) thus optimizing the overall cost of the application. the described circuit is able to supply up to 50 ma with the main voltage in the range 180 - 240 vrms. figure 3 displays the circuit: the mains voltage drops principally across c1 then we chose a capacitor with a high working voltage and a small impedence (i.e. big capacity) in order to have enough current to supply the board consump- tion and to hold the zener over the knee of the voltage-current characteristic. the bigger the capacitor value is, the higher the current possible to supply will be. the zener diode provides -6.2v (as regards to the cathode of d3) to the base terminal of the darlington transistor bdx54s that is used like a voltage stabilizer. supposing the transistor q1 is in saturation, the emitter voltage will be 1.2v (2*vbe=2*0.6v=1.2v) higher than the base voltage. with this configuration, it is possible to choose the emitter of q1 for the gnd, the cathode of d3 for the +5v (vdd) voltage and the base pin of q1 for the -1.2v voltage. an alternative solution (but it does not provide -1.2v supply) is to use a negative voltage regulator as shown in fig. 4. 1 2 220volt r1 56 q1 bdx54s c2 220uf 16v c3 220uf 16v d3 6.2v c4 470uf 25v r2 120 -1.2v gnd d1 d2 c1 2.2uf 400vdc figure 3. power supply circuit burst mode triac control by using st52x301 3/13
in this case it is necessary to use a power resistor rather than a big capacitor because the diode block a half wave of the mains voltage. 3.1 zero crossing in order to work in burst mode by using the st52x301, it is necessary to detect the pre zero crossing like shown in fig 5. the length tp in the st52x301 is programmable by the user according to the characteristics of the triac. following this approach the required triggering power can be reduced by approximately 25 %, as compa- red with symmetrical triggering. the first pulse is to ignite the triac whereas the following pulses are so di- mensioned that the triac cannot be switched off (holding current) during the mains zero crossing. in this way, the interference signal is not generated. this allows also to avoid the problem of the flicker standard (european standard en60555, part 3) 100uf 16v vdd gnd in 2 out 3 1 lm7905 1 2 220v 1n5347 1k 11w 1000uf 25v byt11 600 gnd figure 4 . stabilized power supply power line first pulse next pulses 2/3 tp tp 1/3 tp figure 5. burst mode zero crossing AN1114 - application note 4/13
the following circuit can be used in order to obtain the previous syncronization with the main voltage then generating a sequence of pulse by the st52x301 that will be centred on the zero crossing of the power line. the positive and negative half-wave of the mains voltage flows through the diodes d1 and d2. when the cathode voltage of d3 (d2 anode) is lower 0.6v than the gnd level, d3 clamps to 0 volt so that the low to high and the high to low transition of main1 means the pre-crossing in the rising edge and the post- crossing in the falling edge respectively. vice versa, when the anode voltage of d4 (d1 cathode) is 0.6v higher than the vcc level, d4 clamps to 5 volt so that the low to high and the high to low transition of main2 means the pre-crossing in the f alling edge and the post-crossing in the rising edge respectively. the following figure summarises the previous considerations. d4 d1 d2 39k 470k 1w 680k 1w main2 gnda d3 1 2 220volt 39k 33k 5 volt main1 vdd figure 6. burst mode zero crossing circuit burst mode triac control by using st52x301 5/13
the pulses are generated by using the rise edge of the signal main1 and the falling edge of the signal main2. the lenght of the pulse is programmed by using st52x301 according to the triac characteristics. prescaler 16 bit main2 (20) main1 (21) triacout (24) pulse generator 8 triac/pwm register tc k reg_conf8 reg_conf9 16 2 enable burst/phase angle pwm selector figure 7 . triac / pwm driver simplified bl ock diagram -1,5 -1 -0,5 0 0,5 1 main voltage triacout main 1 main 2 figure 8 . main1 and main2 wave signals AN1114 - application note 6/13
d1 d2 39k 470k 1w 680k 1w main2 d3 39k 33k vdd main1 6.2v 220volt 2 1 r1 56 d3 c2 220uf 16v 470uf 25v c4 bdx54s c3 16v 220uf d2 400vdc 2.2uf c1 d1 120 r2 q1 gnd -1.2v 26 test 36 22pf reset oscout vpp avdd avss 31 3 6 2 22pf txd bg oscin rxd 10mhz 32 44 37 tctrl ain3 mode int ain0 ain2 ain1 tclk main1 tres main2 30 25 19 27 40 41 42 43 33 21 20 29 p3 p4 p7 p6 p5 p8 ready timerout triacout 18 28 24 17 16 14 15 13 p0 p2 p1 st52x301 9 11 12 10 vcc load btb10 100 1uf 10k figure 9. triac burst mode control circuit the following figure shows the complete circuit that is used in this application note for the triac burst mode control. burst mode triac control by using st52x301 7/13
4. software description once the st52x301 peripheral for the triac control has been programmed to drive a triac, it is possible to set all the parameters used for the burst mode control in a flexible way. in particular it is possible to program: 1) the period of the signal tb: this parameter can be in the range 4.26s to 335544s according to the frequency of the main voltage (50 or 60 hz) (see st52x301 pag. 47 data-sheet) 2) the length of the pulse tp: this is in the range 0.0003 ms to 19.6 ms )(see pag. 48 of st52x301data sheet) . 3) the polarity of the pulse for the triac firing; 4) the ton defining the power the user intend to transfer to the load. this parameter (8 bit) can be defined in a closed loop control for thermal regulation by using a fuzzy routine or a standard pid algorithm. for simplicity reasons only one variable is defined in this example: the variable ton fixing the power to transfer on the load. let us suppose we have a 10 mhz oscillator, then to program st52x301: 1) open a new fs3 project (see fig 10). figure 10. new project definition AN1114 - application note 8/13
2) variables definition: double clicking on the variables icon, it is possible to define the global variables ton like appear in figure 11: figure 11 . global variable definition 3) configure the peripheral will be used. in this case after defining the working fr equency, only the pwm/triac driver have to be configured: 3.1) working frequency setting: clicking on the peripherals block it necessary to set the working fre- quency like shown in figure 12. (in this case a 10 mhz oscillator was selected) figure 12. peri pherals configu ration burst mode triac control by using st52x301 9/13
3.2) burst mode setting: clicking on the peripherals block and selecting triac config the following fig- ure will appear: figure 13 . triac driver configuration in this window after defining that the working mode is burst it is possible to fix all the other parameters. in particular it is possible to fix: a) the period t: in this case it was set to 20 s; b) the triac output polarity. in this case considering the structure of the power supply it was defined ne- gative to work in the 2nd or 3rd quadrant; c) the pulse width; (0.0018 ms) d) the power line frequency: 50 or 60 hz; e) the duty cycle of the burst mode can be defined by using directly a fuzzy output or by using a value stored in the register file of the st52x301. in this case a value coming from the register file was selected (ton variable) 4) begin the project with the main_program block. in this window add the following blocks: a) arithmetic block: by using a c like istruction, set the variable ton to 0: ton=0; AN1114 - application note 10/13
b) send block (send_ton_to_triac): insert the value ton in triac counter to set the triac duty cycle. c) peripheral block (start_triac): this block is necessary to initialize (set button), start (start button) the triac with the value contained in triac counter and enable the trout pin of st52x301 (output button). d) arithmetic block: (increment ton) this block was included just to show a simple operation to perform the ton values. in this case, a simple increment of 1 unit is considered in each cycle. ton+=1; normally this value is defined by a fuzzy routine or by a standard algorithm for closed loop control. figure 14. main program description burst mode triac control by using st52x301 11/13
appendix in appendix is shown the assembler code to implement the previous application. ; source file: c:\anbm\burst.wcl ; compile time: wed sep 30 14:27:01 1998 ; device type: st52x301 ; compiler version: 01.00 (02.06.98) @@wclstart@@: ldcf 0 0 ldcf 1 2 ldcf 2 6 ldcf 3 0 ldcf 4 0 ldcf 5 0 ldcf 6 40 ldcf 7 0 ldcf 8 3 ldcf 9 0 ldcf 10 104 ldcf 11 1 ldcf 12 64 ldcf 13 2 ldcf 14 0 ldcf 15 228 start: initialization: ldrc 15 0 send_ton_to_triac: ldpr 1 15 start_triac: ldcf 11 3 ldcf 10 107 increment_ton: mdgi ldrc 0 1 add 15 0 megi mdgi ldrc 0 255 sub 0 15 megi jpns @@00000 AN1114 - application note 12/13
@@00001: ldrc 15 255 @@00000: @@00002: jp send_ton_to_triac stop information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is gran- ted by implication or otherwise under any patent or patent rights of stmicroelectronics. specification mentioned in t his publication are subject to change without notice. this publication supersedes and replaces all informat ion previously supplied. stmicroelectronics products are not authorized for use as critical components in life sup port devices or systems without express written approval of stmicroelectronics. the st logo is a registered trademark of stmicroelectronics ? 1999 stm icroelectronics C printed in italy C all rights reserved stmicroelectronics group of companies aust ralia - brazil - canada - china - france - germany - i taly - japan - korea - malaysia - malta - mex ico - morocco - the netherlands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a. http://www.st.com burst mode triac control by using st52x301 13/13


▲Up To Search▲   

 
Price & Availability of AN1114

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X